//
//  AY_AudioProgressView.h
//  AiYue
//
//  Created by mac on 2023/11/13.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

// 进度条滑块样式
typedef NS_ENUM(NSInteger, SlideType) {
    NormalStyle,      // 正常样式
    TimeStyle,        // 时间样式
};

@protocol SXAudioProgressViewDelegate <NSObject>

- (void)changePlayTimeByPublicAudioPlayProgressView : (int) playCount;

- (void)changePlayTimeByPublicAudioPlayProgressViewEnd : (int) playCount;

@end

@interface AY_AudioProgressView : UIView

@property (nonatomic, strong) UILabel *playTimeLabel;

+ (instancetype)publicAudioPlayProgressView:(CGRect)frame withType:(SlideType)typeStyle;

@property (nonatomic, weak) id<SXAudioProgressViewDelegate> delegate;

- (void)changeCanPlayAbleProgress:(int)progressFloat totalLength:(int)totalCount;

- (void)changePlayProgress : (int) progressFloat totalLength : (int) totalCount;

@end

NS_ASSUME_NONNULL_END
